import {ajax,base} from './config'

export const addLearning = params => { return ajax.postData({url:`${base}/learningController/doAdd.do`, params:params}) };

export const getLearningById = params => { return ajax.getMinData({url:`${base}/learningController/getLearningById.do`, params:params}) };

export const doSaveComment = params => { return ajax.getMinData({url:`${base}/api/learningComment/doSaveComment.do`, params:params}) };

export const datagrid = params => { return ajax.getMinData({url:`${base}/learningController/getSceneList.do`, params:params}) };

export const getWXOtherDepart = params => { return ajax.getMinData({url:`${base}/api/authController/getDepartZtree.do`, params:params}) };

export const getCommentList = params => { return ajax.getMinData({url:`${base}api/learningComment/getCommentList.do`, params:params}) };